//
//  UILabel+extension.swift
//  8.31-WH微博
//
//  Created by 吴涵 on 15/9/10.
//  Copyright © 2015年 wuhan. All rights reserved.
//

import UIKit

extension UILabel {

    convenience init(title: String?,color: UIColor, fontSize: CGFloat, layoutWidth: CGFloat = 0) {
    self.init()
        text = title
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        if layoutWidth > 0 {
        preferredMaxLayoutWidth = layoutWidth
            numberOfLines = 0
        }
    }
}